package org.poem;

import org.poem.annotation.WiselyConfiguration;
import org.poem.service.DemoService;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

@SpringBootApplication
@WiselyConfiguration(value = "org.poem.annotation")
public class Main {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext configApplicationContext =  new AnnotationConfigApplicationContext(Main.class);
        DemoService service = configApplicationContext.getBean(DemoService.class);
        service.outputResult();
        configApplicationContext.close();
    }
}
